package com.turing.procedure.client.draw;

import com.turing.common.response.ResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "draw", path = "element")
public interface ElementInnerService {

    /*
     * 通过id获取模板名称
     * */
    @GetMapping(value = "getTemplateNameById", consumes = "application/json;charset=UTF-8")
    String getTemplateNameById(@RequestParam("templateId") String templateId);

    @PostMapping("getTemplateNameByIdPost")
    ResponseVO<String> getTemplateNameByIdPost(@RequestParam("templateId") String templateId);

}
